#! /bin/bash
sed -i  's/\(version":\s"\).*/\11\.0\.1-server'$(date +%Y%m%d%H%M%S)'",/g' ./package-server.json && sed -i  's/\(version":\s"\).*/\11\.0\.1-service'$(date +%Y%m%d%H%M%S)'",/g' ./package-service.json && npm run build-all && npm publish --tag server ./release-server && cnpm publish --tag service ./release-service
